Imports System.Data.SqlClient
Public Class Resigns
    Public Shared Function GetResign() As DataTable
        Str = "SELECT RESIGN_ID,EMPLOYEE_NAME=ENGLISH_NAME +' ( '+KHMER_NAME+' )',RESIGN_DATE,HOW_LOG,REASON,EFFECT_DATE,KIND_OF_BUSINESS,MODIFY_BY,ACTIVE FROM  VIEW_RESIGN  WHERE ACTIVE=1 ORDER BY RESIGN_ID ASC"


        Try


            Dim dataAdapter As SqlDataAdapter
            dataAdapter = New SqlDataAdapter(Str, CType(Dbinterface.Connection, SqlConnection))
            Dim dataTable As DataTable = New DataTable()
            dataAdapter.Fill(dataTable)
            Return dataTable
        Catch ex As Exception
            MessageBox.Show(ex.ToString)
            Return Nothing
        End Try
    End Function

End Class